<template>
  <div class="main">
      <div slot="header" class="clearfix">
        <v-distpicker @selected="onSelected"></v-distpicker>
       
      </div>
      
      
      
  </div>
</template>

<script>
import VDistpicker from 'v-distpicker'
export default {
  
  name: 'hzjmain',
  components: { VDistpicker },
  props: {
    msg: String
  },
  data() {
    return {
       placeholders: {
              province: '------- 省 --------',
              city: '--- 市 ---',
              area: '--- 区 ---',
          }
     
    }
  },
  methods: {
    onSelected(data) {
      alert(data.province + ' | ' + data.city + ' | ' + data.area)
      console.log(data)
    },
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
